package com.game.majiang.algorithm;

public class card {
	public card(int value)
	{
		switch (value) {
		case 1:
			type = carddata.Tong1;
			break;
		case 2:
			type = carddata.Tong2;
			break;
		case 3:
			type = carddata.Tong3;
			break;
		case 4:
			type = carddata.Tong4;  
			break;
		case 5:
			type = carddata.Tong5;
			break;
		case 6:
			type = carddata.Tong6; 
			break;
		case 7:
			type = carddata.Tong7;
			break;
		case 8:
			type = carddata.Tong8;
			break;
		case 9:
			type = carddata.Tong9;  
			break;
		case 11:
			type = carddata.Tiao1;
			break;
		case 12:
			type = carddata.Tiao2;  
			break;
		case 13:
			type = carddata.Tiao3; 
			break;
		case 14:
			type = carddata.Tiao4; 
			break;
		case 15:
			type = carddata.Tiao5; 
			break;
		case 16:
			type = carddata.Tiao6;   
			break;
		case 17:
			type = carddata.Tiao7;
			break;
		case 18:
			type = carddata.Tiao8;   
			break;
		case 19:
			type = carddata.Tiao9;  
			break;
		case 21:
			type = carddata.Wan1;
			break;
		case 22:
			type = carddata.Wan2; 
			break;
		case 23:
			type = carddata.Wan3; 
			break;
		case 24:
			type = carddata.Wan4;
			break;
		case 25:
			type = carddata.Wan5; 
			break;
		case 26:
			type = carddata.Wan6;
			break;
		case 27:
			type = carddata.Wan7;
			break;
		case 28:
			type = carddata.Wan8;  
			break;
		case 29:
			type = carddata.Wan9;  
			break;
		case 31:
			type = carddata.Dong;
			break;
		case 41:
			type = carddata.Nan; 
			break;
		case 51:
			type = carddata.Xi;  
			break;
		case 61:
			type = carddata.Bei; 
			break;
		case 71:
			type = carddata.Hongzhong;  
			break;
		case 81:
			type = carddata.Facai;
			break;
		case 91:
			type = carddata.Baiban; 
			break;
		case 101:
			type = carddata.HChun;
			break;
		case 102:
			type = carddata.HXia; 
			break;
		case 103:
			type = carddata.HQiu; 
			break;
		case 104:
			type = carddata.HDong;
			break;
		case 105:
			type = carddata.HZhu; 
			break;
		case 106:
			type = carddata.HLan;  
			break;
		case 107:
			type = carddata.HMei;
			break;
		case 108:
			type = carddata.HJu; 
			break;
		default:
			type = carddata.NULL;
			break;
		}
	}
	public carddata type;
}
